<template>
  <div>
    <el-container class="system-container">
      <el-header>
        <div class="logo clearfix">
          <h3 class="fl">惠泽保险后台管理系统</h3>
          <i class="el-icon-s-platform"></i>
          <i class="el-icon-s-opportunity"></i>
          <i class="el-icon-office-building"></i>
        </div>
      </el-header>
      <el-container>
        <el-aside width="200px" class="system-aside">
          <h4>
            欢迎销售人员
            <strong class="ostrong">{{ userName }}</strong>
          </h4>
          <el-menu
            default-active="1"
            class="el-menu-vertical-demo"
            :router="true"
          >
            <el-submenu index="1">
              <template slot="title">
                <i class="el-icon-user"></i>
                <span class="spanColor">保险订单管理</span>
              </template>
              <el-menu-item-group>
                <!-- <el-menu-item index="/admin/adminsList">查看我负责的所有订单</el-menu-item> -->
                <el-menu-item index="/salesman/getOrdersBySalesman"
                  >我的所有订单</el-menu-item
                >
                <el-menu-item index="/salesman/escBaoXian"
                  >查看退保订单</el-menu-item
                >
              </el-menu-item-group>
            </el-submenu>
            <el-submenu index="2">
              <template slot="title">
                <i class="el-icon-user-solid"></i>
                <span class="spanColor">客户管理</span>
              </template>
              <el-menu-item-group>
                <el-menu-item index="/salesman/myUsersList"
                  >查看我负责的所有客户</el-menu-item
                >
                <el-menu-item index="/salesman/addUser">新增客户</el-menu-item>
              </el-menu-item-group>
            </el-submenu>
            <el-submenu index="3">
              <template slot="title">
                <i class="el-icon-s-management"></i>
                <span class="spanColor">理赔管理</span>
              </template>
              <el-menu-item-group>
                <el-menu-item index="/salesman/addOneClaim"
                  >申请理赔</el-menu-item
                >
                <el-menu-item index="/salesman/getAllClaims"
                  >查看所有理赔信息</el-menu-item
                >
              </el-menu-item-group>
            </el-submenu>
            <el-submenu index="4">
              <template slot="title">
                <i class="el-icon-menu"></i>
                <span class="spanColor">邀请</span>
              </template>
              <el-menu-item-group>
                <el-menu-item index="/salesman/myinvite"
                  >我的邀请链接</el-menu-item
                >
              </el-menu-item-group>
            </el-submenu>
            <el-submenu index="5">
              <template slot="title">
                <i class="el-icon-s-order"></i>
                <span class="spanColor">个人中心</span>
              </template>
              <el-menu-item-group>
                <el-menu-item index="/salesman/updateMyInfo"
                  >修改个人信息</el-menu-item
                >
                <!-- <el-menu-item index="/salesman/">我的推广</el-menu-item> -->
              </el-menu-item-group>
            </el-submenu>
          </el-menu>
        </el-aside>
        <el-main>
          <router-view></router-view>
        </el-main>
      </el-container>
    </el-container>
  </div>
</template>

<script>
export default {
  data() {
    return {
      userName: "",
    };
  },
  created() {
    this.userName = localStorage.getItem("userName");
  },
  methods: {},
};
</script>

<style scoped lang="scss">
@import url("./system.css");
</style>
